package kr.co.icebird.spring3.app.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class MainController {

	protected final Log log = LogFactory.getLog(getClass());

	@RequestMapping("/{arg}/main")
	public ModelAndView main(@PathVariable("arg") String arg) {
		return new ModelAndView("/" + arg + "/main");
	}
}
